package com.lwc.config;

import com.alibaba.csp.sentinel.annotation.aspectj.SentinelResourceAspect;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SentinelAspectConfiguration {
    /**
     * 向容器注入sentinel注解的切面
     * @return
     */
    public SentinelResourceAspect sentinelResourceAspect()
    {
        return new SentinelResourceAspect();
    }
}
